import request from '@/utils/request'
// 获取用户的频道
export const userChannels = () => {
  return request({
    url: '/v1_0/user/channels'
  })
}

// 获取文章新闻推荐
export const articles = params => {
  return request({
    url: '/v1_0/articles',
    params
  })
}

// 获取所有频道列表
export const channels = () => {
  return request({
    url: '/v1_0/channels'
  })
}

// 设置用户的频道（重置式）
export const userChannelsPut = data => {
  return request({
    url: '/v1_0/user/channels',
    method: 'put',
    data
  })
}
